<?php
  header('Content-Type:text/html;charset=utf-8');
  $passageID=$_POST['passageID'];
  $authorID=$_POST['authorID'];
  $authorAdminRank=$_POST['authorAdminRank'];
  require_once 'class.php';
  PDOc::_connect();
  PDOc::showPassage($passageID);
  session_start();
  $adminRank=$_SESSION['adminRank'];
  $id=$_SESSION['id'];
  echo '<br/>';
  if ($id==$authorID or $adminRank>$authorAdminRank)
  echo '<form action="editPassage.php" method="post"><input type="hidden" name="passageID" value='.$passageID.'><input type="submit" value="修改"></form>';
  PDOc::Button('userIndex.php','返回个人主页');
?>
<HTML>
<HEAD><TITLE>查看文章</TITLE></HEAD>
</HTML>